package cn.pomelo.activity.service.impl;

import cn.pomelo.activity.mapper.QuestionMapper;
import cn.pomelo.activity.model.Question;
import cn.pomelo.activity.service.IQuestionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class QuestionServiceImpl implements IQuestionService {

    @Resource
    QuestionMapper questionMapper;

    @Override
    public List<Question> findAll() {
        return questionMapper.selectAll();
    }
}
